<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class IndexController extends Controller
{
    public function index(){

        /*$o = exec("echo /usr/local/php/bin/php artisan test 2>&1",$output, $return_val);
        dd($o,$output,$return_val);*/

        /*$url = __DIR__.'/../../../test1.py';
        $o = exec("python3 $url 2>&1",$output, $return_val);
        dd($o,$output,$return_val);*/

        $url = __DIR__.'/../../../test3.py';

        $key = '97e27b77994241631d92299070a0982a4c812c1df5a9c2073f8dc217242735ec73a4fabec025be95a7de603a60ecce16292d8834c10c5ca1150499ad9572dc39007e2d0544beaa80420ea6e026c394b1fdd781b2a51e15ce8a09f39136765705951f7f60fddb8bb0956f4474adf0f238d8d2932f5e3da72cb311648ab0ca59f2e0c973c5d7c7aadadc57bf9ea6ef457de3678965a39ad4e8dcac9eb6e775245b408bb3328663a563a481875a889c6569cade7f88a398fe15967a072d73fb292d458d0185dee7257a622db8039acc51edc4262d90abdee9f9dee44ddccf9cf6753f787a0a32e1140ca0d6abd234c059f9a8ca6a69e2857c9a0d47437b29582881';
        $exponent = '010001';
        $password = 'LJP2000920ljp';
        $o = exec("python3 $url {$key} {$exponent} {$password} 2>&1",$output, $return_val);
        dd($o,$output,$return_val);
    }
}
